How far the door at (x, y) is open: 0 closed to 1 open (0 where there is no door).
Game Boy: not available
Game Boy Color: not available
On other consoles this differs: see Side by side and How the consoles differ.
view3d_door_open(x, y) -> real| Name | Type |
|---|---|
x | real |
y | real |
real
How far the door at (x, y) (room pixels counted from the room's top-left corner) is open: 0 closed to 1 open (0 where there is no door). It moves a little each frame after view3d_door asks, so ask it to know when the door is ready to walk through: about 0.75 and over.
if (view3d_door_open(44, 28) >= 0.75) {
view3d_move(1.5, 0);
}The camera walks forward only once the door is open enough.
It moves a little each frame after view3d_door asks, so ask it to know when the door is ready to walk through (about 0.75 and over).